<?php
	session_start();
	include_once "../util/my_db.php";
	include_once "../util/session.php";

	$appid = $_REQUEST['appid'];
	$PHP_SELF = $_SERVER['PHP_SELF'];


	switch( $appid ) {
		case 1:
			include 'tab.php';
		break;
		case 2:
			include 'news/index.php';
			break;
		case 3:
			include 'news/dir.html';
			break;
		case 4:
			include 'news/news.php';
			break;
		case 5:
			include 'news/tree_server.php';
			break;
		case 6:
			include 'news/news_list.php';
			break;

		case 20:
			include 'column/column.php';
			break;
		case 21:
			include 'column/user.php';
			break;
		case 22:
			include 'column/dir.html';
			break;
		case 23:
			include 'column/tree_server.php';
			break;
		case 24:
			include 'column/index.php';
			break;
			
		case 30:
			include 'user/user_manage.php';
			break;

		case 40:
			include 'message/index.php';
			break;
		case 41:
			include 'message/dir.html';
			break;
		case 42:
			include 'message/tree_server.php';
			break;
		case 43:
			include 'message/message_list.php';
			break;
		case 44:
			include 'message/news_list.php';
			break;
		case 45:
			include 'message/message.php';
			break;
	   
	   default: print("no application found.");
	}
?>